package com.spring.util;

import android.widget.ImageView;

import com.nostra13.universalimageloader.core.ImageLoader;

/**
 * 图片加载工具类 所有加载图片的都用这个类的方法加载图片
 * @author zhoulin
 *
 */
public class ImageBetter {
	
	
	private static ImageBetter instance;

	/** Returns singleton class instance */
	public static ImageBetter getInstance() {
		if (instance == null) {
			synchronized (ImageBetter.class) {
				if (instance == null) {
					instance = new ImageBetter();
				}
			}
		}
		return instance;
	}

	
	
	
	public void displayImage(String url, ImageView imageView){
		ImageLoader.getInstance().displayImage(url, imageView);
		
	}
	

	
}
